package com.crazyhat.crazyhat.anno;

import com.crazyhat.crazyhat.vaildation.ClubPostPublicScopeValidation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * 社团社区公开范围校验注解
 */
@Deprecated
@Documented
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ClubPostPublicScopeValidation.class)
public @interface ClubPostPublicScopeAnno {

    /**
     * 校验失败提示信息
     * @return
     */
    String message() default "{ClubPostPublicScope参数值有误}";

    /**
     * 指定分组
     * @return
     */
    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
